#-------------------------------------------------
#
# Project created by QtCreator 2014-03-04T10:44:51
#
#-------------------------------------------------

QT       += network xml

QT       -= gui

TARGET = plugin
TEMPLATE = lib

TRANSLATIONS += lang/plugin.zh_CN.ts

QMAKE_LFLAGS_RELEASE +=/MAP
QMAKE_LFLAGS_RELEASE +=/MAPINFO:EXPORTS
QMAKE_CFLAGS_RELEASE +=/Zi
QMAKE_LFLAGS_RELEASE +=/debug /opt:ref

QMAKE_LFLAGS_DEBUG +=/MAP
QMAKE_LFLAGS_DEBUG +=/MAPINFO:EXPORTS
QMAKE_CFLAGS_DEBUG +=/Zi
QMAKE_LFLAGS_DEBUG +=/debug /opt:ref

include(../includes.pri)

DEFINES += PLUGIN_LIBRARY

SOURCES += \
    command/AbstractCommand.cpp \
    command/AbstractLogCommand.cpp \
    command/ConsoleLogCommand.cpp \
    plugin/AbstractPlugin.cpp \
    plugin/PluginActivator.cpp \
    plugin/PluginContext.cpp \
    plugin/PluginDescription.cpp \
    plugin/PluginFactory.cpp \
    plugin/PluginRequirement.cpp \
    service/AbstractService.cpp \
    service/LoggerService.cpp \
    service/ServiceRegistry.cpp \
    util/PluginDependencyResolver.cpp \
    util/PluginDescriptionManager.cpp \
    util/PluginDescriptionParser.cpp \
    util/PluginVersion.cpp \
    util/StatusEventListener.cpp \
    util/SiteManager.cpp \
    util/SecurityManager.cpp \
    util/AbstractPrincipal.cpp \
    util/AbstractSecurityContext.cpp \
    util/AbstractSecurityContextHandler.cpp \
    util/Framework.cpp

HEADERS += \
    command/AbstractCommand.h \
    command/AbstractLogCommand.h \
    command/ConsoleLogCommand.h \
    plugin/AbstractPlugin.h \
    plugin/PluginActivator.h \
    plugin/PluginContext.h \
    plugin/PluginDescription.h \
    plugin/PluginFactory.h \
    plugin/PluginRequirement.h \
    service/AbstractService.h \
    service/LoggerService.h \
    service/ServiceRegistry.h \
    util/PluginDependencyResolver.h \
    util/PluginDescriptionManager.h \
    util/PluginDescriptionParser.h \
    util/PluginVersion.h \
    util/StatusEventListener.h \
    util/SiteManager.h \
    util/SecurityManager.h \
    util/AbstractPrincipal.h \
    util/AbstractSecurityContext.h \
    util/AbstractSecurityContextHandler.h \
    util/Framework.h

unix {
    target.path = /usr/lib
    INSTALLS += target
}
OTHER_FILES += \
    conf/framework.xml \
    lang/plugin.zh_CN.qm \
    lang/plugin.zh_CN.ts


INSTALL_PREFIX = $$OUT_PWD/../include/$$TARGET
INSTALL_HEADERS = $$HEADERS
include(../installs.pri)
